package com.xinlong.dao;

import com.xinlong.entity.Guide;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IGuidedao {

    @Select("select * from guide where routeId=#{id}")
    List<Guide> AllGuide(Integer id);

    @Insert("insert guide values(null,#{picture},#{routeid})")
    void saveGuide(Guide guide);

    @Delete("delete from guide where id=#{id}")
    void deGuide(Integer id);


}
